<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>检查任务管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="">待办任务</a></li>
	</ul>
	<form:form id="searchForm" modelAttribute="vrw" action="${ctx}/vrw/vrw/list" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>任务名称</th>
				<th>制定部门</th>
                <th>任务状态</th>
                <th>制定日期</th>
				<shiro:hasPermission name="vrw:vrw:view"><th>操作</th></shiro:hasPermission>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="vrw">
			<tr>
				<td><a href="${ctx}/rw/drRw/result_?rwid=${vrw.id}">${vrw.rwMc}</a></td>
				<td>${vrw.officeZd.name}</td>
                <td>${fns:getDictLabel(vrw.rwFlag,'dr_rw_flag', '')}</td>
                <td><fmt:formatDate value="${vrw.createDate}" pattern="yyyy-MM-dd"/></td>
				<shiro:hasPermission name="vrw:vrw:view"><td>
    				<a href="${ctx}/jcjg/drJg/form?id=${vrw.jgId}&rwId=${vrw.id}">${not empty vrw.jgId?'修改':'填写检查结果'}</a>&nbsp;
				</td></shiro:hasPermission>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>